<?php

    require_once($application_folder."/controllers/navigator.php");
    class Image extends Navigator {

        function Image () {
            parent::Navigator();
            $this->load->model('image_m','imagem');
            $this->load->library('upload');
            $this->load->library('image_lib');
        }

        function submit_addnew() {
            $response = $this->imagem->create();
            if($response['success'] == 'success') {
                echo json_encode(array('success'=>true));
            }else {
                echo json_encode(array('success'=>false));
            }
        }

    }
?>
